<!DOCTYPE html>
<html class="ui-page-login">

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>金银商城 - 找金银网旗下金银珠宝精品商城</title>
		<link href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/mui.min.css" rel="stylesheet" />
		<link href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/style.css" rel="stylesheet" />
		<link href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/zhaojinyin_index.css" rel="stylesheet" />
		<link href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/app.css" rel="stylesheet" />

		<!--script src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/mui.min.js"></script-->
		<script src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/jquery-1.8.0.min.js"></script>
		<script type="text/javascript" charset="utf-8">
		/*
		mui.init({
			swipeBack: true //启用右滑关闭功能
		});
		(function($, doc) {
			$.plusReady(function() {
				
				//reg
				doc.getElementById('reg').addEventListener('tap', function() {
					$.openWindow({
						url: 'reg.html'
					});
				}, false);
				//update_mima
				doc.getElementById('update_mima').addEventListener('tap', function() {
					$.openWindow({
						url: 'update_mima.html'
					});
				}, false);
			});
		}(mui, document));
		*/
	</script>
	
		<style>
			.area {
				margin: 20px auto 0px auto;
			}
			
			.mui-input-group {
				margin-top: 10px;
			}
			
			.mui-input-group:first-child {
				margin-top: 20px;
			}
			
			.mui-input-group label {
				width: 22%;
			}
			
			.mui-input-row label~input,
			.mui-input-row label~select,
			.mui-input-row label~textarea {
				width: 78%;
			}
			
			.mui-checkbox input[type=checkbox],
			.mui-radio input[type=radio] {
				top: 6px;
			}
			
			.mui-content-padded {
				margin-top: 25px;
			}
			
			.mui-btn {
				padding: 10px;
			}
			
			.link-area {
				display: block;
				margin-top: 25px;
				text-align: center;
			}
			
			.spliter {
				color: #bbb;
				padding: 0px 8px;
			}
			
			.oauth-area {
				position: absolute;
				bottom: 20px;
				left: 0px;
				text-align: center;
				width: 100%;
				padding: 0px;
				margin: 0px;
			}
			
			.oauth-area .oauth-btn {
				display: inline-block;
				width: 50px;
				height: 50px;
				background-size: 30px 30px;
				background-position: center center;
				background-repeat: no-repeat;
				margin: 0px 20px;
				/*-webkit-filter: grayscale(100%); */
				border: solid 1px #ddd;
				border-radius: 25px;
			}
			
			.oauth-area .oauth-btn:active {
				border: solid 1px #aaa;
			}
			
			.mui-input-row,
			.mui-input-group {
				position: initial;
			}
		</style>

	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" href="index.php"></a>
			<h1 class="mui-title">登录</h1>
		</header>
		<div class="mui-content" style="background: #FFFFFF; text-align: center;">
			<img src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/8896.png" style="width: 80%; margin: 18px auto;" />
			<form id='login-form' class="mui-input-group" style=" border: 1px solid #c8c7cc;  border-radius: 3px; width: 95%; margin: 0 auto;" method="post" action="index.php?act=login">
				<?php Security::getToken();?>
				<input type="hidden" name="form_submit" value="ok" />
				<input name="nchash" type="hidden" value="<?php echo getNchash();?>" />
				<div class="mui-input-row" style="line-height: 50px; height: 50px; border-bottom: 1px solid #c8c7cc;">
					<label><img style="width: 25px;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/zhanghao4.png"></label>
					<input id='account' style="height: 50px;" name="username" type="text" class="mui-input-clear mui-input" placeholder="手机号/会员号/邮箱">
				</div>
				<div class="mui-input-row" style="line-height: 50px; height: 50px;">
					<label><img src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/mima4.png" style="width: 25px;"></label>
					<input id='password' style="height: 50px;" name="password" type="password" class="mui-input-clear mui-input" placeholder="请输入密码">
				</div>
				<input type="hidden" value="<?php echo $_GET['ref_url']?>" name="ref_url">
			</form>

			<div class="mui-content-padded">
				<button id='login' class="mui-btn mui-btn-block mui-btn-primary">登录</button>
				<p id="update_mima" style="color: #666666;text-align: right;"><a href="index.php?act=login&op=forget">找回密码？</a></p>
				<div class="link-area"><span style="color: #666666;">新用户,</span> <a id='reg' href="index.php?act=login&op=register">快速注册</a>
				</div>
			</div>
			<div class="mui-content-padded oauth-area">

			</div>
		</div>
     <script language="JavaScript">
		 $(function(){
			$("#login").click(function(){
				if($("#account").val() && $("#password").val()) {
					$("#login-form").submit();
				}
			});
		 });
	 </script>
	</body>

</html>